<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>提现申请</title>
    <link rel="stylesheet" href="css/reset.css" />
    <link rel="stylesheet" href="css/all.css" />
    <script src="js/jquery-1.7.1.min.js"></script>
    <script src="js/self.js"></script>
</head>
<body  ontouchstart="">
<div class="detailTop pf w100 of">
    <div class="w100 of tc c3 f18">
        <span class="pa" style="left: 10px;font-size: 30px;color: #444444;" onclick="javascript:history.back();">&laquo;</span>
        提现申请
    </div>
</div>

<div class="container db jz" style="padding-bottom: 0;margin-top: 41px;">
    <section class="proSection pr w100 bcf">
        <h4 class="w100 of clearfix">
            <img src="images/notice.png" class="db fl"><span class="c6 f13 dib fl">每周二可申请提现</span>
        </h4>
        <div class="drawMoney">
            <p class="c6 f13 tc" style="margin-bottom: 2px;">可提现金额</p>
            <p class="cff9933 tc" style="font-size: 24px;margin-bottom: 2px;">20,000.00</p>
            <p class="c9 f12 tc"style="margin-bottom: 10px;">注：提现需要2~3个工作日，请耐心等待。并留意提现记录。</p>
        </div>
    </section>
    <div class="withDrawForm db w100 of">
        <input type="number"  min="0.0" step="0.1" name="" id="tixinamoneyInput" placeholder="提现金额" required="required"/>
        <input type="text"  name="" placeholder="支付宝账号" id="zhifubao" required="required"/>
        <input type="text" name=""  placeholder="收款人姓名" id="username" required="required"/>
        <input type="password" name="" placeholder="app登陆密码" id="apppwd" required="required" style="margin-top: 60px;margin-bottom: 60px;"/>
    </div>

    <div class="detailBottm pf w100 of">
        <button type="button" class="db w100 f18 cf f18 tc" id="withdrawSub">确定提现</button>
    </div>

</div>
<div class="theme-popover-mask">
    <div class="w100 h100 of">
        <img src="images/loading.gif" class="jz hauto db" style="margin-top: 66%;width: 32px"/>
    </div>
</div>
<script>
    $(function () {
        $('#withdrawSub').click(function () {
            var money =$.trim($('#tixinamoneyInput').val());
            var zhifubao = $.trim($('#zhifubao').val());
            var username =$.trim($('#username').val());
            var apppwd = $.trim($('#apppwd').val());

            if(money== ""){
                alert("你还未填写金额");
                return false;
            }

            if(zhifubao == ""){
                alert("请输入支付宝账号!");
                return false;
            }

            if(username == ""){
                alert("收款人姓名!");
                return false;
            }
            if(apppwd == ""){
                alert("请输入app登陆密码!");
                return false;
            }

           $.ajax({
                url: "",
                data: {money: money, zhifubao: zhifubao, username: username, apppwd: apppwd},
                type: 'post',
                dataType: 'json',
                beforeSend: function () {
                    $('.theme-popover-mask').show();
                },
                success: function (data) {
                    console.log(data);
                    if (data.code == 200) {
                        alert("您的申请已提交,等待审核");
//                        alert(data.msg);
                         window.location.reload();
//                        location.href = "withdraw.html";
                    }else{
//                        alert(data.msg);
                        //window.history.back(-1);
                    }
                },
                error: function (data) {
                    alert(data.msg);
                    return false;
                },
                complete: function () {
                    $('.theme-popover-mask').hide();
                }
            });
        })

    })
</script>
</body>
</html>
</html>
</html>
</html>